package sg.edu.nus.dbd.biz;

import java.util.List;

import sg.edu.nus.dbd.dao.DAOFactory;
import sg.edu.nus.dbd.dao.SQLDebugDAO;
import sg.edu.nus.dbd.formbean.SqlDebugTable;

public class SQLDebugBiz {
	public List<SqlDebugTable> executeAll(String sql) {
		try {
			SQLDebugDAO debugDao = DAOFactory.getInstance().getSQLDebugDAO();
			return debugDao.executeAll(sql);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
